package ele.service.user.impl;

import com.ele.facade.user.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

@Produces({MediaType.APPLICATION_JSON})
@Consumes(MediaType.APPLICATION_JSON)

@Api("UserIdentityService")
@Path("userIdentity")
@RestController
@RequestMapping("api")
public class UserServiceImpl implements UserService {
    @GET
    @Path("/checkIsTechManager123")
    @ApiOperation(value = "查询是否是技术经理人")
    @RequestMapping(value = "/checkIsTechManager", method = RequestMethod.GET)
    @Override
    public Boolean checkIsTechManager(@QueryParam("userId") Long userId) {

        return userId < 100L;
    }
}
